#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# 王者荣耀|英雄联盟
# 

def save(hero):
    with open(hero['名字']+'.txt', 'w') as fo:
        for k, v in hero.items():
            fo.write('%s:%s\n' % (k, v))
def load(path):
    with open(path) as fo:
        s = fo.read()[:-1]
    return dict(a.split(':') for a in s.split('\n'))


hero1 = load('亚瑟.txt')
hero2 = load('貂蝉.txt')

save(hero2)
hero2 = load('貂蝉.txt')
print(hero2)
hero2['技能'] = '😄'*10
save(hero2)
hero2 = load('貂蝉.txt')
print(hero2)
